import { post, get } from '@/utils/request'

export default {
  getChapterList: query => post('/api/admin/chapter/page/list', query),
  editChapter: query => post('/api/admin/chapter/editChapter', query),
  getChapterById: chapterId => get('/api/admin/chapter/getChapterById/' + chapterId),
  removeChapterById: chapterId => post('/api/admin/chapter/removeChapterById/' + chapterId),
  chapterSort: query => post('/api/admin/chapter/chapterSort', query),
  list: level => get('/api/admin/chapter/list/' + level),
  newLevelChapter: level => post('/api/admin/chapter/newLevelChapter/' + level)
}